﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Teacher/Teacher.master" AutoEventWireup="true" CodeFile="Award_Details.aspx.cs" Inherits="Teacher_Award_Details" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <dx:ASPxGridView ID="gvwAward_details" runat="server" 
        AutoGenerateColumns="False" CssFilePath="~/App_Themes/DevEx/{0}/styles.css" 
        CssPostfix="DevEx" DataSourceID="Main" KeyFieldName="Award_Details_ID" 
        Width="100%" onrowvalidating="gvwAward_details_RowValidating" 
        Caption="Award Details">
        <Columns>
            <dx:GridViewCommandColumn VisibleIndex="0">
                <EditButton Visible="True">
                </EditButton>
                <NewButton Visible="True">
                </NewButton>
                <DeleteButton Visible="True">
                </DeleteButton>
                <UpdateButton Text="Save">
                </UpdateButton>
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dx:GridViewCommandColumn>
            <dx:GridViewDataComboBoxColumn FieldName="AwardID" VisibleIndex="2">
                <PropertiesComboBox DataSourceID="AwardID" TextField="AwardID" 
                    ValueField="AwardID">
                </PropertiesComboBox>
            </dx:GridViewDataComboBoxColumn>
            <dx:GridViewDataComboBoxColumn FieldName="PostingID" VisibleIndex="3">
                <PropertiesComboBox DataSourceID="PostingID" TextField="PostingID" 
                    ValueField="PostingID">
                </PropertiesComboBox>
            </dx:GridViewDataComboBoxColumn>
            <dx:GridViewDataDateColumn FieldName="Awrad_Date" VisibleIndex="4">
            </dx:GridViewDataDateColumn>
        </Columns>
        <Settings ShowFilterRow="True" />
        <Images SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
            <LoadingPanelOnStatusBar Url="~/App_Themes/DevEx/GridView/StatusBarLoading.gif">
            </LoadingPanelOnStatusBar>
            <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
            </LoadingPanel>
        </Images>
        <ImagesFilterControl>
            <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
            </LoadingPanel>
        </ImagesFilterControl>
        <Styles CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx">
            <Header ImageSpacing="5px" SortingImageSpacing="5px">
            </Header>
            <LoadingPanel ImageSpacing="5px">
            </LoadingPanel>
        </Styles>
        <StylesEditors ButtonEditCellSpacing="0">
            <ProgressBar Height="21px">
            </ProgressBar>
        </StylesEditors>
    </dx:ASPxGridView>
    <asp:SqlDataSource ID="Main" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Institte_of_Fine_ArtsConnectionString %>" 
        DeleteCommand="DELETE FROM Award_Details WHERE (Award_Details_ID = @Award_Details_ID)" 
        InsertCommand="INSERT INTO Award_Details(AwardID, PostingID, Awrad_Date) VALUES (@AwardID, @PostingID, @Awrad_Date)" 
        SelectCommand="SELECT Award_Details_ID, AwardID, PostingID, Awrad_Date FROM Award_Details" 
        UpdateCommand="UPDATE Award_Details SET AwardID = @AwardID, PostingID = @PostingID, Awrad_Date = @Awrad_Date WHERE (Award_Details_ID = @Award_Details_ID)">
        <DeleteParameters>
            <asp:Parameter Name="Award_Details_ID" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="AwardID" />
            <asp:Parameter Name="PostingID" />
            <asp:Parameter Name="Awrad_Date" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="AwardID" />
            <asp:Parameter Name="PostingID" />
            <asp:Parameter Name="Awrad_Date" />
            <asp:Parameter Name="Award_Details_ID" />
        </UpdateParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="AwardID" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Institte_of_Fine_ArtsConnectionString %>" 
        SelectCommand="SELECT [AwardID] FROM [Award]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="PostingID" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Institte_of_Fine_ArtsConnectionString %>" 
        SelectCommand="SELECT [PostingID] FROM [Posting]"></asp:SqlDataSource>
</asp:Content>

